package com.example.yilanchatserver.application.controller.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class ErnieBotStreamRespVO implements Serializable {
    private String id;
    private String object;
    private Integer created;

    @JsonProperty("sentence_id")
    private String sentenceId;
    @JsonProperty("is_end")
    private Boolean isEnd;
    @JsonProperty("is_truncated")
    private Boolean isTruncated;
    private String result;
    @JsonProperty("need_clear_history")
    private Boolean needClearHistory;

    private Usage usage;

    @Data
    public static class Usage implements Serializable {
        @JsonProperty("prompt_tokens")
        private Integer promptTokens;
        @JsonProperty("completion_tokens")
        private Integer completionTokens;
        @JsonProperty("total_tokens")
        private Integer totalTokens;
    }

}
